package com.wopinla.service.impl;
import com.wopinla.dao.CollectDao;

import com.wopinla.dao.CommentDao;
import com.wopinla.pojo.*;

import com.wopinla.pojo.collect;
import com.wopinla.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service   //添加注解

public class CollectServiceImpl implements CollectService{

    //注入dao层（调用dao）
    @Autowired
    private CollectDao collectDao;

    @Override
    public int addcollect(Map<String, Object> map)
    {
        return  collectDao.addcollect(map);
    }

    @Override
    public collect isCollected(collect col) {
        return collectDao.isCollected(col);
    }


}
